package com.kgc.dto;

/**
 * @Author: luo
 * @date: 2024/4/7 9:32
 * @Description:
 * @Version: 1.0
 *
 * 自定义响应码
 */
public class Code {

    //ctrl+shift+u 快速转换为大写
    public static final Integer SELECT_SUCCESS = 2000;//查询成功
    public static final Integer UPDATE_SUCCESS = 2002;//更新成功
    public static final Integer DELETE_SUCCESS = 2003;//删除成功
    public static final Integer INSERT_SUCCESS = 2001;//插入成功

    public static final Integer SELECT_ERROR = 4000;//查询失败
    public static final Integer INSERT_ERROR = 4001;//插入失败
    public static final Integer UPDATE_ERROR = 4002;//更新失败
    public static final Integer DELETE_ERROR = 4003;//删除失败

    public static final Integer SYSTEM_ERROR = 5000;//系统异常

    public static final Integer BUSINESS_ERROR = 5001;//业务异常

    public static final Integer OTHER_ERROR = 5002;//其他异常
    public static final Integer LOGIN_SUCCESS = 2004;//登录成功
    public static final Integer LOGIN_ERROR = 4004;//登录失败
}
